package com.junxonline.instant.dao.mapper.device;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.junxonline.instant.dao.entity.model.device.Group;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 终端分组表Mapper
 *
 * @author JunX
 * @date 2021-09-29
 */
@Repository
public interface GroupMapper extends BaseMapper<Group> {

    List<Group> queryList(@Param("ew") Wrapper<Group> wrapper);

    List<Group> queryChildren(@Param("groupId") Long groupId);

    Group selectById(@Param("id") Long id);

    Long selectIdByName(@Param("name") String name);

}
